package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.AppliDetail;
import com.ruoyi.system.domain.AppliDetailMat;
import com.ruoyi.system.domain.Requisitions;

/**
 * 租赁采购Mapper接口
 * 
 * @author ruoyi
 * @date 2021-04-30
 */
public interface AppliDetailMapper 
{
    /**
     * 查询租赁采购
     * 
     * @param appliId 租赁采购ID
     * @return 租赁采购
     */
    public AppliDetail selectAppliDetailById(Long appliId);

    /**
     * 查询租赁采购列表
     * 
     * @param appliDetail 租赁采购
     * @return 租赁采购集合
     */
    public List<AppliDetail> selectAppliDetailList(AppliDetail appliDetail);

    /**
     * 新增租赁采购
     * 
     * @param appliDetail 租赁采购
     * @return 结果
     */
    public int insertAppliDetail(AppliDetail appliDetail);

    //新增租赁采购单
    public int insertAppliDetailMat(AppliDetailMat appliDetailMat);

    /**
     * 修改租赁采购
     * 
     * @param appliDetail 租赁采购
     * @return 结果
     */
    public int updateAppliDetail(AppliDetail appliDetail);

    public int updateAppliDetailMat(AppliDetailMat appliDetailMat);

    /**
     * 删除租赁采购
     * 
     * @param appliId 租赁采购ID
     * @return 结果
     */
    public int deleteAppliDetailById(Long appliId);

    //根据外键删除
    public int deleteAppliDetailMat(Long appliId);

    /**
     * 批量删除租赁采购
     * 
     * @param appliIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteAppliDetailByIds(Long[] appliIds);

    //查询租赁详情
    AppliDetail queryAppliDetailListById(Long id);

    //查询一个项目租赁成本
    Double projectCostById(Long id);
}
